package com.atguigu.gmall.cart;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.Map;

/**
 * 购物车提供远程调用feign接口
 */
@FeignClient(name = "service-cart",path = "/api/cart",contextId = "cartFeign")
public interface CartFeign {

    /**
     * 获取当前订单的购物车信息
     */
    @GetMapping("/getOrderCart")
    public Map<String, Object> getOrderCart();
    /**
     * 根据用户名删除购物车中数据
     */
    @GetMapping("/clearCart")
    public void clearCart();
}
